<!doctype html>
<html>
<head>
    <title>列表页面</title>
    <?php $this->load->module('admin/index/page_header');?>
    <link href="<?php echo URLPRE;?>static/admin/css/font_icon.css" rel="stylesheet" />

</head>
<body>
<div id="mainContent" class="wrap">
    <div class="nav">
        <ul>
            <li class="current"><a href="javascript:void(0)">酒店列表</a></li>
            <li><a href="<?php echo $add_url;?>">添加酒店</a></li>
        </ul>
    </div>
    <div class="h_a">搜索</div>
    <div class="search_type cc mb10">
        <form action="<?php $form_url;?>" method="get">
            <div class="ul_wrap">
                <label>关键字：</label>
                <input type="text" class="input length_3" name="word"  value="<?php if(!empty($condition['word'])) echo $condition['word'] ;?>" placeholder='酒店名称'>
                <input type="checkbox" value="1" <?php if($condition['status']=='1') echo "checked" ;?> name="status">查看禁用酒店
                <button class="btn" type="submit">搜索</button>
            </div>
        </form>
    </div>
    <div class="h_a">酒店列表</div>
    <div id="content" class="table_full">
        <form method="post" action="<?php echo URLPRE?>member/admin/delete_member/">

            <table data-uri="<?php echo site_url('hotel/admin/hotel_status');?>">
                <tr>
                    <th>ID</th>
                    <th>酒店名称</th>
                    <th>酒店介绍</th>
                    <th>所在地</th>
                    <th>更新时间</th>
                    <th>创建时间</th>
                    <th>状态</th>
                    <th>操作</th>
                </tr>
                <?php if(isset($list)&&!empty($list)):?>
                    <?php foreach($list as $k=>$v):?>
                        <tr>
                         <td><a  href="<?php echo site_url('rent/admin/edit_car/'.$v['id']);?>"  target="_blank"><?php echo $v['id'];?></a></td>
                        <td style="width:6%;"><?php echo $v['name'];?></td>
                        <td style="width:4%;"><?php echo strip_tags($v['introduce']);?></td>
                        <td style="width:4%;"><?php echo $v['local'];?></td>
                        <td style="width:4%;"><?php echo date('Y-m-d H:i:s',$v['upts']);?></td>
                        <td style="width:4%;"><?php echo date('Y-m-d H:i:s',$v['crts']);?></td>
                        <td style="width:4%;">
                            <img class="pointer" data-id="<?php echo $v['id'];?>" style="cursor: pointer;" data-field="status" data-value="<?php echo $v['status'];?>" src="<?php echo URLPRE;?>static/admin/images/icons/icon_<?php echo $v['status'];?>.png" /></td>
                        <td style="width:4%" class="btn_min">
                            <a class="icon-pencil" href="<?php echo site_url('hotel/admin/edit_hotel/'.$v['id']);?>">编辑</a>
                            <a class="icon-remove-2 doDel" href="javascript:;" data-uri="<?php echo site_url('hotel/admin/delete_hotel?id='.$v['id']);?>">删除</a>
                        </td>
                    </tr>
                    <?php endforeach ;?>
                <?php endif;?>


            </table>
        </form>
        <div class="page_nav">
            <?php echo $this->mypageclass->show(2); ?>
        </div>
    </div>
</div>

</body>
</html>